package com.zcxy.core.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @author 前端分页查询通用实体
 * @create 2019/11/28 9:06
 * @Ver 1.0.0
 */
@Data
@NoArgsConstructor
@ApiModel("PageQuery")
public class PageQuery<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "当前页")
    @Min(value = 0, message = "当前页为整数")
    private int pageNo = 1;
    @ApiModelProperty(value = "每页数量")
    @Min(value = 5, message = "每页数量不能低于5")
    private int pageSize = 10;
    @ApiModelProperty(value = "实体对象")
    private T t;

}